package cn.dkk.behavior_design.meditor;

/**
 * @author dkk
 * @date 2022/7/28
 * @desc 消费者端
 */
public  class Consumer implements Mediable{

    protected Mediator mediator;

    public void getMes(){
        System.out.println(mediator.getMes());
    }

    public Consumer(Mediator mediator) {
        this.mediator = mediator;
    }
}
